﻿using System;

namespace Wei8808Cms.WebSite.admin
{
    public partial class login : System.Web.UI.Page
    {
        protected string StartYear;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack) return;
            var year = DateTime.Now.Year;
            StartYear = year != 2014 ? "2014 - " : "";
            txtUserName.Focus();
        }

        protected void btn_login_Click(object sender, EventArgs e)
        {
            var userName = txtUserName.Value.Trim();
            var userPwd = txtPassword.Value.Trim();
            if (userName.Equals(""))
            {
                txtUserName.Focus();
                return;
            }
            if (userPwd.Equals(""))
            {
                txtPassword.Focus();
                return;
            }

        }
    }
}